#' @param centers [\code{\link{matrix}}]\cr
#'   Matrix containing the points of a grid of cells, for which the lengths of cumulated
#'   gradient paths should be computed. Each row corresponds to a single point.
